package com.mallcloud.mall.mall.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.mallcloud.mall.common.data.datascope.MallBaseMapper;
import com.mallcloud.mall.mall.api.entity.MallOrderCouponModel;
import com.mallcloud.mall.mall.api.entity.vo.MallOrderCouponVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface MallOrderCouponMapper extends MallBaseMapper<MallOrderCouponModel> {

	Page pageOrderCoupon(Page<MallOrderCouponVO> page, @Param("query") MallOrderCouponModel dto);

	List<MallOrderCouponVO> pageOrderCoupon(@Param("query") MallOrderCouponModel dto);

	List<MallOrderCouponVO> listByOrderNos(@Param("orderNos") List<String> orderNos);

}
